import request from "@/utils/request"

/** 增 */
export function createTableDataApi(data) {
  return request({
    url: "table",
    method: "post",
    data
  })
}

/** 改 */
export function updateTableDataApi(data) {
  return request({
    url: "table",
    method: "put",
    data
  })
}
// 列标查询
export function queryParameter(data, { currentPage, size }) {
  return request({
    url: `/sysParamSet/search/${currentPage}/${size}`,
    method: "post",
    data
  })
}
// 新增
export function addParameter(data) {
  return request({
    url: "/sysParamSet",
    method: "post",
    data
  })
}

export function updateParameterApi(data) {
  return request({
    url: "/sysParamSet",
    method: "put",
    data
  })
}
// 详情
export function queryParameterDetail(id) {
  return request({
    url: `/sysParamSet/${id}`,
    method: "get",
  })
}
// 删除
export function deleteParameter(id) {
  return request({
    url: `/sysParamSet/${id}`,
    method: "delete"
  })
}
